# -*- coding: utf-8 -*-
from typing import Any
from .common import session_begin
from sqlalchemy import text
from sqlalchemy.orm import Session
from utility.security import get_password_hash, verify_password
from app.yg_crm.schemas import User, UserCreate, UserUpdate
from app.yg_crm.orm import User as DB_User


def getDataBySql(db: Session, sql: str):
    data = db.execute(text(sql)).all()
    db.commit()
    return data
